package com.nettyrpc.bean;

import com.nettyrpc.protocol.RpcRequest;

public interface InvokeHandler {

    Object handle(Class<?> clazz, Object serviceBean, String methodName, Class<?>[] parameterTypes, Object[] parameters) throws Throwable;

    Object handle(Object serviceBean, RpcRequest request) throws Throwable;
}
